package com.shigu.activity.action;

import com.shigu.PageResponse;
import com.shigu.activity.api.ActivityService;
import com.shigu.activity.vo.IndexActivityListVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("wapsjson")
public class ActivityController {

    @Resource(name = "activityServiceImpl")
    ActivityService activityService;

    @RequestMapping("getIndexActivityList")
    @ResponseBody
    public PageResponse<IndexActivityListVo> getIndexActivityList(){
        return activityService.getIndexActivityList().success();
    }
}
